@charset "utf-8";
//角色卡
.roleCard {
    position: relative;
    width: 23.5rem;
    height: 32.5rem;
    margin: 5rem auto;
    border: 0.4rem solid #fff;
    background: #ffedc5;
    .roleNumber {
        position: absolute;
        top: -2rem;
        left: 43%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        border: 0.2rem solid #ffedc5;
        font-size: 3rem;
        color: rgb(245, 107, 129);
        text-align: center;
        background: #fff;
    }
    .backface {
        //背面默认隐藏
        display: none;
        margin: 8rem auto;
        width: 15rem;
        height: 15rem;
        overflow: hidden;
        border-radius: 50%;
        img {
            //头像
            width: 100%;
        }
    }
    .front {
        //正面默认隐藏
        display: none;
        .roleInfo {
            padding: 1.5rem 0;
            .role-pic {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 2rem auto;
                width: 10rem;
                height: 10rem;
                overflow: hidden;
                border-radius: 50%;
                background-color: #fbb435;
                img {
                    height: 80%;
                }
            }

            span {
                display: block;
                text-align: center;
                font-size: 2rem;
                line-height: 1.5;
            }
            .identity {

                color: rgb(41, 189, 224);
            }
            .wordGroup {
                color: rgb(245, 107, 129);
            }

        }
        .tip {
            position: absolute;
            bottom: 0;
            border-top: 0.1rem solid #fff;
            font-size: 1.3rem;
            color: rgb(252, 160, 0);
            p {
                margin: 1rem;
            }
        }
    }

}
